tools/xenctx: Correct use of xc_domain_{, un}pause()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 4 Jul 2014 16:06:20 +0000 (17:06 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 10 Jul 2014 10:20:07 +0000 (11:20 +0100)
commit6de560fadabb8a19887aa4320857088dba9a2b95
tree2865e7b8e774e9ec6d917b9318846bd12ba5460a
parent000a2383613d55315d01e51112d2a9e13b6b08ae
tools/xenctx: Correct use of xc_domain_{, un}pause()

The previous code never worked correctly.  There was a TOCTOU race between
checking dominfo and pausing the domain.

Since c/s 3eb1c708, Xen properly reference counts pause hypercalls, so
unconditionally pause and unpause the domain.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xentrace/xenctx.c